package com.cheng.chengliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cheng.chengliving.commodity.vo.SpuSaveVO;
import com.cheng.common.utils.PageUtils;
import com.cheng.chengliving.commodity.entity.SpuInfoEntity;

import java.util.Map;

/**
 * 商品 spu 信息
 *
 * @author zhucheng
 * @email 1920361386@qq.com
 * @date 2022-12-07 14:40:22
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVO spuSaveVO);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    //通过携带的检索条件进行分页查询
    PageUtils queryPageByCondition(Map<String, Object> params);

    //spu上架
    void up(Long spuId);

    //下架
    void down(Long spuId);
}

